﻿using System;
using Accona.Remoting;
using Accona.Test.Common;

namespace Accona.Test.Client
{
    class Client
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Press a key");
            Console.ReadKey();
            //RemoteExecutionRepository.Instance.ParseAssembly(typeof(Client).Assembly);

            var rep = new RemotingRepository();
            var intrfc = rep.Resolve<IMyInterface>();

            Console.WriteLine(intrfc.Echo("Hallå"));

            Console.ReadKey();
            Console.WriteLine(intrfc.Echo("Hallå igen!"));
            Console.ReadKey();
        }
    }
}
